/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataConverters.utils;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Nobody
 */
public class WarningMessagesContainer {
    List<String> warningMessages = new LinkedList<String>();

    public void addMessage(String warningMessage){
        warningMessages.add(warningMessage);
    }

    public int size() {
        return warningMessages.size();
    }
    
    public String getWarningMessages() {
        StringBuilder builder = new StringBuilder();
        for(String item : warningMessages){
            builder.append(item).append("\n");
        }
        return builder.toString();
    }

    public boolean hasWarningMessages(){
        return !warningMessages.isEmpty();
    }
}
